/**
 * RemoteFileServiceRegistry.java
 */
package fss.remote.util;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.List;

import fss.common.communication.QueryResult;

public interface RemoteFileServiceRegistry extends Remote {
    /**
     * Return a list of query result(s) that matches the
     * specified parameter.
     * 
     * @param param the query string.
     * @return a map of identifiers to their respective matches.
     * @throws RemoteException error invoking method.
     */
    public List<QueryResult> query(String param) throws RemoteException;
    /**
     * Callback update method.
     * 
     * @param message an object.
     * @throws RemoteException error invoking method.
     */
    public void update(Object message) throws RemoteException;
}
